<?php
declare (strict_types = 1);

namespace app\model;

use Symfony\Component\VarDumper\Cloner\Data;
use think\Model;

/**
 * @mixin \think\Model
 */
class Role extends Model
{


    protected $type = [
        'api_ids'      =>  'array',
    ];

    public function getIsSuperRoleAttr($value,$data)
    {
        return $data['name']==config('admin.super_role');
    }

}
